<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			//面试点：parseInt只要看到非数字就直接停止 
			//如果1开始就是不认识：就直接告诉你结果结果： 这不是1个数字  NaN =not a number
			var aa = '123abc';
			var bb = parseInt(aa);
			console.log(bb);
			
			
			aa = 'abc123';
			var bb = parseInt(aa);
			console.log(bb);
			
			var cc ='10*20';
			//console.log("%c 黄老师  13926583118","color:red");
			//equal value
			console.log('%c'+cc,'color:red');
			console.log('%c'+eval(cc),'color:red');
			
			//dd 不是1个数字  true
			var dd='afsdf';
			var jieguo1 = isNaN(dd);
			console.log(jieguo1);
			
			dd=55; //55不是1个数字 false
			jieguo1 = isNaN(dd);
			console.log(jieguo1);
			
		</script>
	</body>
</html>
